package com.covid.model;

import com.covid.validation.SymptomValidator;
import java.util.Collections;
import java.util.Set;

public class Symptom {
    private final Set<String> selectedSymptoms;
    private final Double temperature;

    public Symptom(Set<String> selectedSymptoms, Double temperature) {
        SymptomValidator.validate(selectedSymptoms, temperature);
        this.selectedSymptoms = Collections.unmodifiableSet(selectedSymptoms);
        this.temperature = temperature;
    }

    public Set<String> getSelectedSymptoms() {
        return selectedSymptoms;
    }

}